import React from 'react';
import './App.css';
import {BrowserRouter,Switch,Redirect,Route} from 'react-router-dom'

import Login from './views/Login'
import Register from './views/Register'
import Home from './views/Home'

function App() {
  return (
    <div className="App">
        <BrowserRouter>
            <Switch>
                <Route path="/login" component={Login}></Route>
                <Route path="/register" component={Register}></Route>
                <Route path="/home" component={Home}></Route>
                <Redirect path="/" to="/login"></Redirect>
            </Switch>
        </BrowserRouter>
    </div>
  );
}

export default App;
